﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace AISFMIOperator
{
    public partial class AddSpecialtyForm : Form
    {
        public AddSpecialtyForm()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Specialty s = new Specialty();
            s.SpecialtyID = 0;
            s.SpecialtyName = specialty.Text.Trim();
            s.Description = description.Text.Trim();

            s.Save();

            this.Close();
        }
    }
}
